using System;
using System.Collections;

namespace LocalBoard.Persistence
{
	/// <summary>
	/// Summary description for IClubCategoryAccessor.
	/// </summary>
	public interface IClubCategoryAccessor
	{
		/// <summary>
		/// Delete club category
		/// </summary>
		/// <param name="id">Club category id</param>
		void Delete(int id);
		/// <summary>
		/// Get all club categories
		/// </summary>
		/// <returns>Hashtable of all categories with category id as key and category name as value</returns>
		Hashtable GetAllClubCategories();
		/// <summary>
		/// Insert club category
		/// </summary>
		/// <param name="clubCategoryName">Club category name</param>
		/// <returns>Club category id</returns>
		int Insert(string clubCategoryName);
		/// <summary>
		/// Update club category
		/// </summary>
		/// <param name="clubCategoryName">New club category</param>
		/// <param name="id">Club category id to change</param>
		void Update(string clubCategoryName, int id);
	}
}
